package com.ruoyi.medical.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 设备二维码对象 meioms_device_qrcode
 * 
 * @author ruoyi
 * @date 2025-12-03
 */
@TableName("meioms_device_qrcode")
public class MeiomsDeviceQrcode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 二维码ID */
    @TableId
    private Long qrcodeId;

    /** 设备ID */
    private Long deviceId;

    /** 二维码内容 */
    private String qrcodeContent;

    /** 二维码图片 */
    private byte[] qrcodeImage;

    /** 创建时间 */
    private Date createTime;

    public void setQrcodeId(Long qrcodeId)
    {
        this.qrcodeId = qrcodeId;
    }

    public Long getQrcodeId()
    {
        return qrcodeId;
    }
    public void setDeviceId(Long deviceId)
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId()
    {
        return deviceId;
    }
    public void setQrcodeContent(String qrcodeContent)
    {
        this.qrcodeContent = qrcodeContent;
    }

    public String getQrcodeContent()
    {
        return qrcodeContent;
    }
    public void setQrcodeImage(byte[] qrcodeImage)
    {
        this.qrcodeImage = qrcodeImage;
    }

    public byte[] getQrcodeImage()
    {
        return qrcodeImage;
    }
    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public Date getCreateTime()
    {
        return createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("qrcodeId", getQrcodeId())
            .append("deviceId", getDeviceId())
            .append("qrcodeContent", getQrcodeContent())
            .append("createTime", getCreateTime())
            .toString();
    }
}
